package oa.hleast.xswl.service.appsicon;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import oa.hleast.xswl.pojo.domain.SysDictItem;
import oa.hleast.xswl.pojo.domain.appsicon.CmsAppsIcon;
import oa.hleast.xswl.pojo.form.appsicon.CmsAppsIconForm;
import oa.hleast.xswl.pojo.vo.appsicon.CmsAppsIconVo;
import oa.hleast.xswl.pojo.vo.appsicon.HomePageAppsIconVo;

import java.util.List;

public interface IAppsIconService extends IService<CmsAppsIcon> {
    boolean add(CmsAppsIconForm cmsAppsIconForm);

    boolean update(CmsAppsIconForm cmsAppsIconForm);

    Page<CmsAppsIconVo> pageList(Integer page, Integer limit, Integer display, Long dictItemAppsIconTypeId);

    boolean deleteByIds(List<String> asList);

    CmsAppsIconVo detail(Integer id);

    /**
     * 移动端 首页应用图标
     *
     * @param page  当前页
     * @param limit 每页数量
     * @return 分页列表
     */
    Page<HomePageAppsIconVo> getHomePageIcon(Integer page, Integer limit, Long dictItemAppsIconTypeId);

    /**
     * 应用图标位置类型
     */
    List<SysDictItem> findAppsIconType();

    Page<CmsAppsIconVo>  pageListByApps(Integer page, Integer limit, String appTypeKey);

    Page<HomePageAppsIconVo> getAppHomePageIcon(Integer page, Integer limit, Long dictItemPlayId);

}
